package cn.itcast.service;

import cn.itcast.mapper.BaseDictMapper;
import cn.itcast.pojo.BaseDict;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2018/5/12.
 */
@Service("baseDictService")
public class BaseDictServiceImpl implements BaseDictService {

    //依赖注入
    @Autowired
    private BaseDictMapper baseDictMapper;
    @Override
    //根据类别代码查询数据字典
    public List<BaseDict> findBaseDictByTypeCode(String typecode) {

        List<BaseDict> baseDictList = baseDictMapper.selectBaseDictByTypeCode(typecode);

        return baseDictList;
    }
}
